package com.helen.ui.newui;

import android.widget.ImageView;

import com.helen.shopping.R;
import com.helen.ui.BaseActivity;
import com.helen.utils.ShareUtils;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by yang on 2019/2/2
 */
public class RoyaltyActivity extends BaseActivity {
    @BindView(R.id.img_share)
    ImageView imgShare;
    private int type;
    private String title;

    @Override
    protected int attachLayoutRes() {
        type = getIntent().getIntExtra("type", 1);
        title = getIntent().getStringExtra("title");
        switch (type) {
            case 1:
                return R.layout.activity_clothes_royalty;
            case 2:
                return R.layout.activity_jiaju_royalty;
            case 3:
                return R.layout.activity_book_royalty;
            case 4:
                return R.layout.activity_laji_royalty;
            case 5:
                return R.layout.activity_dianzi_royalty;
            case 6:
                return R.layout.activity_recommend_royalty;

        }
        return R.layout.activity_clothes_royalty;
    }

    @Override
    protected void initInjector() {

    }

    @Override
    protected void initViews() {
        getToolbarTitle().setText(title);
    }

    @Override
    protected void updateViews() {

    }


    @OnClick(R.id.img_share)
    public void onViewClicked() {
//        ShareUtils.showShare(this);
    }


}
